cmake_minimum_required(VERSION 3.16)
project(thread_pool)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
add_executable(thread_pool main.cpp list.cpp list.h thread/JavaThread.cpp thread/Atomic.cpp thread/hpp/Atomic.h thread/hpp/JavaThread.h thread/ThreadPool.cpp thread/hpp/ThreadPool.h thread/ThreadTools.cpp thread/hpp/ThreadTools.h thread/ManageThread.cpp thread/hpp/ManageThread.h thread/Task.cpp thread/hpp/Task.h thread/TaskPool.cpp thread/hpp/TaskPool.h thread/ObjectMonitor.cpp thread/hpp/ObjectMonitor.h thread/ParkEvent.cpp thread/hpp/ParkEvent.h thread/ObjectWaiter.cpp thread/hpp/ObjectWaiter.h)